import com.px.pojo.People;
import com.px.pojo.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import sun.jvm.hotspot.debugger.Page;

public class Application {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("Beans.xml");
//        User people = applicationContext.getBean("user", User.class);
        People people = applicationContext.getBean("people", People.class);
        System.out.println(people.toString());
    }
}
